﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DmxTestTool.Model
{
    public class DmxViewItemModel : System.ComponentModel.INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private int index;
        private byte value;
        public int Index
        {
            set 
            { 
                index = value;
                PropertyChanged?.Invoke(this,new PropertyChangedEventArgs("Index"));
            }
            get => this.index;
        }
        public byte Value
        {
            set
            {
                this.value = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Value"));
            }
            get => this.value;
        }
    }
}
